﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.OleDb;

/// <summary>
/// MsgDao 的摘要说明
/// </summary>
public class MsgDao
{
	public MsgDao()
	{
		//
		// TODO: 在此处添加构造函数逻辑
		//
	}

    //删除
    public static void del(string id)
    {
        OleDbConnection conn = DB.conn();
        if (conn != null)
        {
            conn.Open();
            OleDbCommand comm = new OleDbCommand();
            try
            {
                comm.Connection = conn;
                //删除此栏目
                comm.CommandText = "delete from msg where id in (" + id + ")";
                comm.ExecuteNonQuery();
            }
            catch (Exception ex) { throw ex; }
            finally { comm.Dispose(); conn.Close(); }
        }
    }
}
